FIND_PATH(MYGUI_INCLUDE_DIR MYGUI/MyGUI.h)
FIND_LIBRARY(MYGUI_LIBRARY NAMES MyGUIEngine)
FIND_LIBRARY(MYGUI_OPENGL_LIBRARY NAMES MyGUI.OpenGLPlatform)

IF(MYGUI_INCLUDE_DIR AND MYGUI_LIBRARY)
    SET(EXTERNAL_INCLUDE_DIR ${MYGUI_INCLUDE_DIR} ${OPENGL_INCLUDE_DIR})
    SET(EXTERNAL_LIBRARIES ${MYGUI_LIBRARY} ${MYGUI_OPENGL_LIBRARY} ${OPENGL_LIBRARIES})
    
    SET(EXAMPLE_NAME osgmygui)
    SET(EXAMPLE_FILES osgmygui.cpp MYGUIManager.cpp)
    START_EXAMPLE()
ENDIF(MYGUI_INCLUDE_DIR AND MYGUI_LIBRARY)
